//
//  BaseViewController.h
//  PropertyMananger
//
//  Created by bh on 16/12/20.
//  Copyright © 2016年 BH. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SGSegmentedControl.h"

@interface BaseViewController : UIViewController<UITableViewDataSource,UITableViewDelegate,UIGestureRecognizerDelegate,UISearchBarDelegate,UITextFieldDelegate,SGSegmentedControlStaticDelegate, UIScrollViewDelegate>{
    
    HcdDateTimePickerView * dateTimePickerView;
}


//分栏菜单
@property (nonatomic, strong) SGSegmentedControlStatic *topSView;
@property (nonatomic, strong) SGSegmentedControlBottomView *bottomSView;

//获取登录信息，所有子界面可以使用
extern UserInfoModel const * userModel;

//导航栏名字
@property (nonatomic,strong) UILabel * titleLable;
//导航栏右边按键
@property (nonatomic,strong) UIButton * leftCustomButton;
//暂无数据的提示
@property (nonatomic,strong) UIImageView * placeHolderImage;
//列表
@property (nonatomic,strong) UITableView * tableView;

//暂未图
@property (nonatomic,strong) UIImageView * placehoderImg;
@property (nonatomic,strong) UILabel * titleLabel;

//刷新数据
@property (nonatomic,assign) NSInteger nextPage;
@property (nonatomic,assign) BOOL isDown;

//字符串拼接
@property (nonatomic,copy) NSString * titleStr;//标题
@property (nonatomic,copy) NSString * pingjieStr;//拼接标题
@property (nonatomic,strong) NSMutableAttributedString * stra;

//搜索框
@property (nonatomic,strong) MCSearchBar * searchBar;
//查询类型
@property (nonatomic,assign) NSInteger queryType;
//输入的搜索关键字
@property (nonatomic,copy) NSString * searchStr;
@property (nonatomic,strong) NSString *searchText;
@property (nonatomic) BOOL isSearch;//判断是否在搜索
@property (nonatomic,retain) NSMutableArray *resultArr;

/**下拉菜单*/
@property (nonatomic, strong) SPullDownMenuView *menu;


//返回按钮点击事件
-(void)leftButtonClick;
//导航栏标题
- (void)initTitleViewName:(NSString *)titleName;
- (void)initRightUICustomButtonImageName:(NSString *)ImageName AndTitleName:(NSString *)titleName;
//tableView
- (void)initTableViewWithView:(UIView *)view frame:(CGRect)frame isGroup:(BOOL)isGroup;

//返回手势
- (void)setOpenBack;

@end
